package cn.gogoyc.org.basic.query;

import lombok.Data;

/**
 * The type Base query.
 *
 * @author Yang
 * @date 2023 /1/14 13:25
 */
@Data
public class BaseQuery{
    private Integer currentPage = 1;
    private Integer pageSize = 5;

    /**
     * 计算分页起始下标 begin.
     *
     * @return 起始下标 begin
     */
    public Integer getBegin() {
        return (this.currentPage - 1) * this.pageSize;
    }

    //高级查询的数据
    private String keyword;
}
